package com.plian.system.vo.sys.fun;

import com.plian.system.entity.sys.fun.SysFun;
import com.plian.system.node.INode;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2024/8/1 2:51 PM
 * @Param
 * @return
 * @Version: 1.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "SysFunVO", description = "菜单指标")
public class SysFunVO extends SysFun implements INode<String, SysFunVO> {

    private Boolean check;


    private List<SysFunVO> children;

    @Override
    public List<SysFunVO> getChildren() {
        if (this.children == null) {
            this.children = new ArrayList<>();
        }
        return this.children;
    }
}
